package com.example.zhaojianxu.signin.englishgame.recording

import android.support.v7.widget.RecyclerView
import android.view.View
import com.example.zhaojianxu.signin.englishgame.http.EGRecordEntity
import kotlinx.android.synthetic.main.item_record_view.view.*

/**
 * create by @zhaojianxu on 2019/2/26
 */
class RecordViewHolder(val rootView: View) : RecyclerView.ViewHolder(rootView) {


    fun bindData(model: EGRecordEntity) {
        rootView.item_record_view_1.text = "${adapterPosition+1}"
        rootView.item_record_view_2.text = model.code
        rootView.item_record_view_3.text = model.time

    }
}